<?php (defined('BASEPATH')) OR exit('No direct script access allowed');

/**
 * InkType Router
 *
 * Description:
 * This controller modifies the default CodeIgniter URI behavior in respect to calling controllers/methods.
 * Instead this controller re-routes URI segments directly to views and allows views to call functions within this controller.
 *
 * Copyright (c) Jesse D. Terry 2008.12.01
 * 
 * This modification to CodeIgniter is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * See http://www.gnu.org/licenses/ for a complete copy of the GNU GPL.
 *  
 **/

class InkType_Router extends MY_Controller {

    function InkType_Router() {

        parent::MY_Controller();

    }

    function _remap() {

        if ($_POST) {

            $this->inktype->post_handler();

        }

        $this->inktype->load_view();

    }

}

?>